﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="Web.admin.UserClass.edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function CheckEmpty() {

            if ($(".class").val() == "") 
           {
                 alert("用户名称为必填项，不能为空！");
                return false;
            }
           else
                return true;
            };
            function ClearToEmpty() {
                if ($(".class").val(""))
               return false;
            };
     </script>

</head>
<body>
    <form id="form1" runat="server">
     <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../../images/main_hl.gif" /></td>
                        <td ><img src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>类别修改</span></td>
                        <td><img src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
    <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation">
                <span>首页&gt;系统管理&gt;权限管理&gt;角色管理</span>
                <div style="float:right; margin-right:5px;">
                    <a href="List.aspx">返回用户类型列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table>
                    <tr>
                        <th>用户名称：<input type="hidden" id="RoleId" runat="server" /></th>
                        <td>    
                            <asp:TextBox   ID="RoleName" CssClass="class"  runat="server" ></asp:TextBox>
                            <label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <th>用户类型：</th>
                        <td><asp:DropDownList ID="RoleType"  runat="server" AutoPostBack="True">
                        <asp:ListItem Value="0">系统角色</asp:ListItem>
                        <asp:ListItem Value="1">非系统用角色</asp:ListItem>
                        </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btn_Save" OnClientClick="return CheckEmpty();"  runat="server" Text="保存" CssClass="btn_submit" 
                                onclick="btn_Save_Click" Height="32px" Width="81px" />
                        </td>
                        <td>
                            <asp:Button ID="btn_Reset"  OnClientClick="return ClearToEmpty();" runat="server" Text="重置"  CssClass="btn_reset"/>
                         </td>
                   </tr> 
                   </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
